import { http } from '@/utils/http'

type Result = {
  success: boolean
  data: Array<any>
}

/** 查询动态表单中label作为流程实例的查询条件 **/
export const flowtemplateQueryFilterList = (data: any) => {
  return http.post<any>('/api/flowtemplate/queryfilterlist', data)
}

/** 执行流程分页查询 **/
export const flowinstancePages = (data: any) => {
  return http.post<any>("/api/flowinstance/pages", data);
};

// /** 执行流程实例 **/
export const flowinstanceExecute = (data: any) => {
  return http.put<any>(`/api/flowinstance/execute`, data);
};

// /** 执行流程分页查询 **/
// export const flowinstancePages = (data: any) => {
//   return http.request<any>("post", "/api/flowinstance/pages", { data });
// };
